﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;
using An_Im.Extension.Contract;

namespace An_Im.Command
{
    /// <summary>
    /// 命令组。
    /// </summary>
    public class CommandGroup : Dictionary<string, IAnImCommand>
    {
        public string Name { get; private set; }

        public CommandGroup(string name)
        {
            Name = name;
        }

        public void AddVBAExportableCommand(string name, string description, IList<ParaNameValuePair> paralist, CommandExecuteHandler commandExecuteHandler, string vbacode)
        {
            this.Add(name, new VBAExportableCommand(name, description, paralist, commandExecuteHandler, vbacode));
        }
    }
}
